home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Purity
/
Purity #48 (1995-06-25)(PackMAN)(DE)[WB].zip
/
Purity #48 (1995-06-25)(PackMAN)(DE)[WB].adf
/
Konverter
/
Dec_Bin_Bit.p
next >
Wrap
Text File
|
1995-06-24
|
401b
|
27 lines
program hallo;
var
i,j,l,h:integer;
function Bit_gesetzt (byt: integer; n: integer): boolean;
begin
bit_gesetzt := ( byt and ( 1 shl n ) ) = 1 shl n;
end;
begin
write('Zahl eingeben : ');
readln(l);
writeln('Zahl in 16-Bit-Darstellung:');
for j := 15 downto 0 do
if BIT_gesetzt(l, j) then
write('1')
else
write('0');
writeln;
readln;
end.